package property;

import java.io.FileOutputStream;
import java.util.Properties;

public class Demo_Property_save {
    public static void main(String[] args) throws Exception
    {
        Properties p=new Properties();
        p.setProperty("name", "zhang");
        p.setProperty("id", "1");
        p.store(new FileOutputStream("student.conf"), null);
    }
}
